package net.pessu.android.shoppoid.gui;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.TextView;

public class TextCourrier extends TextView {
	
	public TextCourrier(Context context) {
		super(context);
		initTypeFace();
		setPressed(false);		
	}
	
	public TextCourrier(Context context, AttributeSet attrs) {
		super(context, attrs);
		initTypeFace();
		setPressed(false);
	}

	public TextCourrier(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		initTypeFace();
		
	}
	
	private void initTypeFace(){
		setTypeface(IhmObjets.tf);
	}

	/* (non-Javadoc)
	 * @see android.widget.TextView#onFocusChanged(boolean, int, android.graphics.Rect)
	 */
	@Override
	protected void onFocusChanged(boolean focused, int direction,
			Rect previouslyFocusedRect) {
		// TODO Auto-generated method stub
		super.onFocusChanged(focused, direction, previouslyFocusedRect);
	}

	/* (non-Javadoc)
	 * @see android.widget.TextView#onSelectionChanged(int, int)
	 */
	@Override
	protected void onSelectionChanged(int selStart, int selEnd) {
		// TODO Auto-generated method stub
		super.onSelectionChanged(selStart, selEnd);
	}

	/* (non-Javadoc)
	 * @see android.widget.TextView#onTouchEvent(android.view.MotionEvent)
	 */
	@Override
	public boolean onTouchEvent(MotionEvent event) {
		return false;
	}
	
	

}
